/**
 * @Title: evaluationOrg_router.js
 * @Description:定点机构诚信router
 * Copyright: Copyright (c) 2014 
 * Company:中国平安
 *
 * @Project MHIS-FWA
 * @author EX-LUORONG001
 * @date 2015年01月28日 上午09:54:06
 * @version V1.0
 */
;
(function(){
	'use strict';
	
	var app = angular.module('fwa.routers');
	app.config(['BaseURL','Config', function(baseUrl,Config){
		
		var states = Config.states;
		    
        /**********************************
         *************定点机构诚信管理**************
         **********************************

         **********************************
		 **********************************/
        
        states.push({
        	name:'illegalQuery',
        	url:'/illegalQuery',
        	deepStateRedirect: true,
            sticky: true,
        	data:{
        		title:'定点机构违规情况 ',
        		tabRoot:'illegalQuery',
        		auth:'illegalQuery'
        	},
        	views:{
        		'illegalQuery@':{
                    templateUrl:baseUrl+'views/hcpms/evaluation/evaluationOrg/evaluationIllegal/illegalQuery.html',
                    controller:'IllegalQueryCtrl'
        		}
        	}
        });
        
        
        /**
         * 诚信考评
         */
        
    	states.push({
			name:'evaluationOrgListManager',
            url:'/evaluationOrgListManager',
            data:{
            	title:'定点机构诚信考评',
            	tabRoot:'evaluationOrgListManager',
            	auth:'evaluationOrgListManager'
            },
            deepStateRedirect: true,
            sticky: true,
            views:{
                'evaluationOrgListManager@':{
                	template:'<div class="full-width full-height" ui-view></div>',
                    controller:function($state){
                        if($state.current.name == 'evaluationOrgListManager') {
                            $state.go('evaluationOrgListManager.evaluationOrgList');
                        }
                    }
                }
            }
		});
    	/**
    	 * 医疗机构考评列表信息
    	 */
        states.push({
			name:'evaluationOrgListManager.evaluationOrgList',
            url:'/evaluationOrgList',
            data:{
            	title:'定点机构诚信考评',
            	tabRoot:'evaluationOrgListManager',
            	auth:'evaluationOrgListManager.evaluationOrgList'
            },
            views:{
                '@evaluationOrgListManager':{
                	templateUrl:baseUrl+'views/hcpms/evaluation/evaluationOrg/evaluationIntegrity/evaluationOrgList.html',
	        		controller:'EvalutionOrgListCtrl'
                }
            }
		});
        
        /**
         * 医疗机构开始考评页面
         */
        states.push({
			name:'evaluationOrgListManager.updateEvaluationOrg',
	        url:'/updateEvaluationOrg/{evaluationCode}',
	        data:{
	        	title:'定点机构诚信考评',
	        	tabRoot:'evaluationOrgListManager',
	        	auth:'evaluationOrgListManager.updateEvaluationOrg'
	        },
	        views:{
	            '@evaluationOrgListManager':{
	            	 templateUrl:baseUrl+'views/hcpms/evaluation/evaluationOrg/evaluationIntegrity/updateEvaluation_view.html',
	                 controller:'UpdateEvaluationCtrl'
	            }
	        }
		});
        /**
         * 医疗机构诚信分析岗的撤销操作
         */
        states.push({
			name:'evaluationOrgListManager.cancelEvaluationOrg',
	        url:'/cancelEvaluationOrg/{evaluationCode}',
	        data:{
	        	title:'定点机构诚信考评',
	        	tabRoot:'evaluationOrgListManager'
	        },
	        views:{
	            '@evaluationOrgListManager':{
	            	 templateUrl:baseUrl+'views/hcpms/evaluation/evaluationOrg/evaluationIllegal/illegal_cancel.html',
	                 controller:'cancelEvaluationCtrl'
	            }
	        }
		});
        /**
         * 医疗机构诚信审核岗的撤销操作
         */
        states.push({
			name:'evaluationOrgListManager.cancelEvaluationOrgApprove',
	        url:'/cancelEvaluationOrgApprove/{evaluationCode}',
	        data:{
	        	title:'定点机构诚信考评',
	        	tabRoot:'evaluationOrgListManager'
	        },
	        views:{
	            '@evaluationOrgListManager':{
	            	 templateUrl:baseUrl+'views/hcpms/evaluation/evaluationOrg/orgReview/illegal_cancelApprove.html',
	                 controller:'CancelEvaluationCtrlApprove'
	            }
	        }
		});
        
        /**
         * 已经完成的
         */
        states.push({
			name:'evaluationOrgListManager.finishEvaluationOrg',
	        url:'/finishEvaluationOrg/{evaluationCode}/{opertion}',
	        data:{
	        	title:'定点机构诚信考评',
	        	tabRoot:'evaluationOrgListManager'
	        },
	        views:{
	            '@evaluationOrgListManager':{
	            	 templateUrl:baseUrl+'views/hcpms/evaluation/evaluationOrg/orgFinish/orgFinishUpdateEvaluation_view.html',
	                 controller:'OrgFinishUpdateEvaluationCtrl'
	            }
	        }
		});
        
        
        
        /**
         * 医疗机构考评审核查询列表页面
         */
        states.push({
			name:'evaluationOrgReviewManager',
            url:'/evaluationOrgReviewManager',
            data:{
            	title:'定点机构诚信审核',
            	tabRoot:'evaluationOrgReviewManager',
            	auth:'evaluationOrgReviewManager'
            },
            deepStateRedirect: true,
            sticky: true,
            views:{
                'evaluationOrgReviewManager@':{
                	template:'<div class="full-width full-height" ui-view></div>',
                    controller:function($state){
                        if($state.current.name == 'evaluationOrgReviewManager') {
                            $state.go('evaluationOrgReviewManager.evaluationOrgReviewList');
                        }
                    }
                }
            }
		});
        /**
         * 医疗机构考评审核查询列表页面
         */
        states.push({
			name:'evaluationOrgReviewManager.evaluationOrgReviewList',
            url:'/evaluationOrgReviewList',
            data:{
            	title:'定点机构诚信审核',
            	tabRoot:'evaluationOrgReviewManager',
            	auth:'evaluationOrgReviewManager.evaluationOrgReviewList'
            },
            views:{
                '@evaluationOrgReviewManager':{
                	templateUrl:baseUrl+'views/hcpms/evaluation/evaluationOrg/orgReview/evaluationOrgReviewList.html',
	                 controller:'EvaluationOrgReviewListCtrl'
                }
            }
		});
        
        /**
         * 医疗机构考评审核页面
         */
        states.push({
			name:'evaluationOrgReviewManager.evaluationOrgReview',
	        url:'/evaluationOrgReview/{evaluationCode}',
	        data:{
	        	title:'定点机构诚信审核',
	        	tabRoot:'evaluationOrgReviewManager',
	        	auth:'evaluationOrgReviewManager.evaluationOrgReview'
	        },
	        views:{
	            '@evaluationOrgReviewManager':{
	            	templateUrl:baseUrl+'views/hcpms/evaluation/evaluationOrg/orgReview/orgReviewUpdateEvaluation_view.html',
                    controller:'OrgReviewUpdateEvaluationCtrl'
	            }
	        }
		});
        
        
        /**
         * 医疗机构考评审批列表页面
         */
        states.push({
			name:'evaluationOrgApproveManager',
            url:'/evaluationOrgApproveManager',
            data:{
            	title:'定点机构诚信审批',
            	tabRoot:'evaluationOrgApproveManager',
            	auth:'evaluationOrgApproveManager'
            },
            deepStateRedirect: true,
            sticky: true,
            views:{
                'evaluationOrgApproveManager@':{
                	template:'<div class="full-width full-height" ui-view></div>',
                    controller:function($state){
                        if($state.current.name == 'evaluationOrgApproveManager') {
                            $state.go('evaluationOrgApproveManager.evaluationOrgApproveList');
                        }
                    }
                }
            }
		});
        /**
         * 医疗机构考评审批列表页面
         */
        states.push({
			name:'evaluationOrgApproveManager.evaluationOrgApproveList',
            url:'/evaluationOrgApproveList',
            data:{
            	title:'定点机构诚信审批',
            	tabRoot:'evaluationOrgApproveManager',
            	auth:'evaluationOrgApproveManager.evaluationOrgApproveList'
            },
            views:{
                '@evaluationOrgApproveManager':{
                	templateUrl:baseUrl+'views/hcpms/evaluation/evaluationOrg/orgApprove/evaluationOrgApproveList.html',
	                controller:'evaluationOrgApproveListCtrl'
                }
            }
		});
        
        /**
         * 医疗机构考评开始审批页面
         */
        states.push({
			name:'evaluationOrgApproveManager.evaluationOrgApprove',
	        url:'/evaluationOrgApprove/{evaluationCode}',
	        data:{
	        	title:'定点机构诚信审批',
	        	tabRoot:'evaluationOrgApproveManager',
	        	auth:'evaluationOrgApproveManager.evaluationOrgApprove'
	        },
	        views:{
	            '@evaluationOrgApproveManager':{
	            	    templateUrl:baseUrl+'views/hcpms/evaluation/evaluationOrg/orgApprove/orgApproveUpdateEvaluation_view.html',
	                    controller:'OrgApproveUpdateEvaluationCtrl'
	            }
	        }
		});
        
        
        
       //end
	}]);
})();
